Miles Sound System SDK 7.2a

Memory management under Win32

Discussion

Under Win32, memory management is pretty easy - you can pass in any plain old memory pointer for Miles to process. If you want your memory allocations to be compatible with MacOS 9 or DOS, though, you should use the AIL_mem_alloc_lock function. If porting isn't an issue, though, just use whatever memory allocator is convenient (malloc, resource locks, whatever).

For internal memory use, Miles allocates its own memory directly from the operating system. You can intercept these memory allocation requests with the AIL_mem_use_malloc and AIL_mem_use_free functions.

Next Topic (Callbacks under Win32)

Previous Topic (Sound under Win32)


Group: Overview for Win32: Miles on Windows XP, Vista, 2000, NT and Win9x
Related Functions: AIL_mem_alloc_lock, AIL_mem_use_free, AIL_mem_use_malloc

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.